localtime
Get local time
localtime()
function returns the local time.
Output the local time as a numeric array and an associative array:
<?php print_r ( localtime ( ) ) ; echo "<br><br>" ; print_r ( localtime ( time ( ) , true ) ) ; ?>
Try it yourself